package top.forforever.srb.core.pojo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @create: 2023/5/6
 * @Description:
 * @FileName: StatusEnum
 * @自定义内容：
 */
@Getter
@AllArgsConstructor
public enum LendItemEnum {
    NOT_PAYMENT(0, "未支付"),
    PAYMENT(1, "已支付"),
    REPAID(2, "已还款");
    private Integer status;

    private String message;

    public static String getessageStringByStatus(Integer status) {
        LendItemEnum[] values = LendItemEnum.values();
        for (LendItemEnum value : values) {
            if (value.getStatus().intValue() == status) {
                return value.getMessage();
            }
        }
        return "";
    }
}
